/*
 * Copyright (c) 2020. www.sonsure.com Inc. All rights reserved.
 * You may obtain more information at
 *
 *   http://www.sonsure.com
 *
 * Designed By Selfly Lee (selfly@live.com)
 */

package com.sonsure.dustman.common.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 分页对象
 *
 * @param <T>
 * @author selfly
 */
@Setter
@Getter
public class Page<T> implements Serializable {

    private static final long serialVersionUID = -376015922238121976L;

    /**
     * 数据列表
     */
    private List<T> list;

    /**
     * 分页信息
     */
    private Pagination pagination;

    public Page() {

    }

    public Page(Pagination pagination) {
        this(null, pagination);
    }

    public Page(List<T> list, Pagination pagination) {
        this.list = list;
        this.pagination = pagination;
    }

}
